package pl.edu.mimuw.irs.core.model.simulation.atomic;

import pl.edu.mimuw.irs.core.global.IDManager;
import pl.edu.mimuw.irs.core.model.analysis.atomic.ActivityPlace;
import pl.edu.mimuw.irs.core.model.design.net.IRSRequirement;
import pl.edu.mimuw.irs.core.util.Position;

public class EventPlace extends ActivityPlace {

	private static final long serialVersionUID = -5974882491913983917L;
	
	// *** Properties
	
	public static final String BUSY = "Busy";
	
	// *** Attributes
	
	private boolean busy;
	public boolean isBusy() {
		return busy;
	}
	public void setBusy(boolean busy) {
		boolean oldBusy = this.busy;
		this.busy = busy;
		getListeners().firePropertyChange(BUSY, oldBusy, busy);
	}
	
	// *** Constructors
	
	public EventPlace(IDManager idManager, String id, Position position,
			int tokens, IRSRequirement requirement) {
		super(idManager, id, position, tokens, requirement);
	}
}
